package top.amot.forceview.model

import android.graphics.PointF
import android.graphics.RectF

 abstract class AbstractNode(val item:Any?=null) {

     // the node’s zero-based index into nodes
    var index = 0

    // the node’s current x-position and y-position, the position is initialized in a phyllotaxis arrangement.
    var x = 0.0f
    var y = 0.0f

    // the node’s current x-velocity and y-velocity, the velocity is initialized to ⟨0,0⟩.
    @kotlin.jvm.JvmField
    var vx = 0.0f
    @kotlin.jvm.JvmField
    var vy = 0.0f

    // the node’s fixed x-position and y-position
    var fx = Float.MAX_VALUE
    var fy = Float.MAX_VALUE

    val calcX:Float
       get() = x+vx

    val calcY:Float
       get() = y+vy

    var centerPoint:PointF=PointF(0f,0f)

    var level = 0
    var visable = true
    var expanded = false

    abstract val type: String

}